package qa.ui;

import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;

public class Exit extends JPanel {

	private JLabel lblExitingTheSystem;
	private JButton btnBack;
	
	private String exiting;
	
	/**
	 * Create the panel.
	 */
	public Exit() {
		setLayout(null);
		
		JLabel lblExitingTheSystem = new JLabel("Exiting the System");
		lblExitingTheSystem.setBounds(113, 69, 129, 34);
		add(lblExitingTheSystem);
		
		JButton btnBack = new JButton("Main Menu");
		btnBack.setBounds(277, 211, 117, 29);
		add(btnBack);

	}
	public String getExiting(){
		exiting = lblExitingTheSystem.getText();
		return exiting;
	}
	public JButton getbtnBack(){
		return btnBack;
	}
	
	
	public void addActionListener(ActionListener l) {
		btnBack.addActionListener(l);
		
	}
	
		
	
	
		
	}



